<?php


namespace app\project\validate;


use think\Validate;

class Category extends Validate
{
    protected $rule =   [
        'title'  => 'require|unique:project_category',
    ];

    protected $message  =   [
        'title.require' => '项目名必须',
        'title.max'     => '项目名已经存在',
    ];
}